<?php 
      session_start();
    
      ?>
<?php
  $con=mysql_connect("localhost","reimemic","kee7baef");
// Check connection
if (!$con)
  {
  echo "Failed to connect to MySQL: " . mysql_connect_error();
  }

// Create database
mysql_select_db("reimemic");
  $jmeno =   $_SESSION['name'] ;
  $objem=  $_SESSION['capacity'];
  $dvere=   $_SESSION['doors'];
  $barva=      $_SESSION['colour'];
  $cena= $_SESSION['cena'];
mysql_query("INSERT INTO TrololoObjednavka (Jmeno,Objem,Barva,Dvere,Cena)
VALUES ('$jmeno','$objem','$barva','$dvere','$cena')");
echo"Ulozeni probehlo uspesne";
echo "<meta http-equiv='refresh' content='1;url=out.php'>";

?>		